package week05.necessary;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import week05.necessary.ioc.xml.XmlBean01;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@SpringBootApplication
public class GeektimeJavaHomeworkApplication {

    public static void main(String[] args) {
        SpringApplication.run(GeektimeJavaHomeworkApplication.class, args);
    }

    @Resource
    private XmlBean01 xmlBean01;

    @PostConstruct
    public void post() {
        System.out.println(xmlBean01);
    }

}